import request from '@/utils/request'

//列表
export function reqCustomerList(query) {
  return request({
    url: '/manager/kefu/index',
    method: 'get',
    params: query
  })
}

//获取来源类型列表
export function reqAdviceTypeList(query) {
  return request({
    url: '/manager/api/adviceTypeList',
    method: 'get',
    params: query
  })
}

//获取主题列表
export function reqAdviceThemeList(query) {
  return request({
    url: '/manager/api/adviceThemeList',
    method: 'get',
    params: query
  })
}

// 获取状态列表

export function reqAdviceStatusList(query) {
  return request({
    url: '/manager/api/adviceStatusList',
    method: 'get',
    params: query
  })
}

//获取详情
export function reqServeById(id) {
  return request({
    url: '/manager/kefu/getSeekAdivceInfo?id=' + id,
    method: 'get'
  })
}

//新增
export function reqAddServe(data) {
  return request({
    url: '/manager/kefu/seekAdvice',
    method: 'post',
    data
  })
}

//编辑
export function reqEditServe(data) {
  return request({
    url: '/manager/kefu/setMsg',
    method: 'post',
    data
  })
}

//获取跟进记录
export function reqAdminMsgList(id) {
  return request({
    url: '/manager/kefu/adminMsgList?id=' + id,
    method: 'get'
  })
}
//客服列表导出
export function reqIndexExport(data) {
  return request({
    url: '/manager/kefu/indexExport',
    method: 'post',
    data: data,
  })
}
